@import "color";
@import "reset";
@import "common";
@import "gray";

.triangle {
	position: absolute;
	margin-top: 8px;
	left: 50px;
	display: block;
	width: 0;
	height: 0;
	overflow: hidden;
	line-height: 0;
	font-size: 0;
	border-bottom: 8px solid @light-white;
	border-top: 8px solid @light-white;
	border-left: none;
	border-right: 8px solid @gray;
}

.easyChat {
	position: fixed;
	bottom: 0px;
	right: 0px;
	z-index: 1024;
}

.ecWin {
	display: none;
	position: relative;
	height: 100%;
}

.ecFold {
	position: relative;
	opacity: .1;
	top: 40px;
	right: 0;
	box-shadow: -3px -2px 8px -1px rgba(0, 0, 0, 0.2);
	cursor: pointer;

	.fdbg, .fdbox {
		width: 270px;
		height: 40px;
	}
	.fdbg {
		background: #f0f1f4;
		filter: alpha(opacity=95);
		opacity: 0.95;
		border-radius: 2px 0px 0px 2px;
	}
	.fdbox {
		position: absolute;
		top: 0;
		left: 0;
	}
	.fdico {
		display: inline-block;
		width: 18px;
		height: 16px;
		margin: 11px 16px 0 20px;
		background: url(image/0389-mail2.png) no-repeat scroll 0 0 transparent;
	}
	.fdtid {
		line-height: 40px;
		color: #333;
		font-style: normal;
		font-weight: normal;
		vertical-align: top;
	}
}

.ecLayer {
	position: relative;
}

.ecBoxHeader {
	position: relative;
}

.ecCloseBtn {
	display: inline-block;
	*zoom: 1;
	margin-left: 8px;
	text-decoration: none;
	cursor: pointer;
	font-family: 'Arial' !important;
	font-size: 18px;
	font-weight: bold;
	color: #000;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	&:hover {
		color: #eb7350;
	}
}

.ecUserBox {
	float: left;
	width: 160px;
	height: 400px;
	overflow: hidden;
	border: 1px solid @border-lightblue;
	background-color: @light-white;
	font-size: 14px;
}

.ecMsgList {
	height: 328px;
	overflow: auto;
	list-style: none;

	.li {
		position: relative;
		padding: 10px;
		cursor: default;
		&.ecTimeLi {
			padding: 5px 10px;
		}

		.avabox {
			float: left;
			width: 32px;
			height: 32px;
			overflow: hidden;
			.avaimg {
				width: 32px;
				height: 32px;
			}
		}

		.msgct {
			float: left;
			min-height: 30px;
			min-width: 2em;
			*width: 335px;
			max-width: 335px;
			margin-left: 16px;
			line-height: 1.6em;
			color: @font-black;
			display: inline-block;
			*display: inline;
			zoom: 1;
			padding: 5px 10px;
			border: 1px solid @gray;
			background-color: @gray;
			border-radius: 5px;
			white-space: pre-wrap;
			word-wrap: break-word;
		}

		&.lirt {
			.avabox {
				float: right;
			}
			.msgct {
				float: right;
				margin-right: 16px;
				color: @white;
				border: 1px solid @blue;
				background-color: @blue;
			}
		}

		.tipbox {
			text-align: center;

			.mhtri {
				cursor: pointer;
				font-size: 12px;
				color: @blue;
				&:hover {
					text-decoration: underline;
				}
			}
			.nomoretip {
				font-size: 12px;
			}
			&.loadding {
				.loadmsg {
					display: inline-block;
				}
				.mhtri {
					display: none;
				}
			}
			.loadmsg {
				width: 16px;
				height: 16px;
				display: none;
				*zoom: 1;
				background: url(image/loading.gif) no-repeat transparent;
				vertical-align: middle;
			}
		}

		.timebox {
			text-align: center;
			.tmstr {
				display: inline-block;
				padding: 0 .5em;
				font-size: 12px;
				color: @gray-light;
			}
		}

	}
	.spline {
		.timebox {
			background: url(image/msg-spliter.png) no-repeat center transparent;
		}
	}

	.lirt {
		.triangle {
			left: auto;
			right: 50px;
			border-bottom: 8px solid @light-white;
			border-top: 8px solid @light-white;
			border-right: none;
			border-left: 8px solid @blue;
		}

		.msgct {
			float: right;
		}
	}
}

.ulst-wp {
	position: relative;
	height: 400px;
	overflow: hidden;
}

.ecUserList {
	list-style: none;

	.li {
		position: relative;
		padding: 8px 12px;
		cursor: pointer;
		border-bottom: 1px solid @border-lighterblue;

		&:last-child {
			border-bottom: 0 none;
		}

		.avabox {
			position: relative;
			top: 0;
			left: 0;
			z-index: 1;
			float: left;
			width: 32px;
			height: 32px;
			.avaimg {
				width: 32px;
				height: 32px;
			}
			.newMsgNum {
				position: absolute;
				top: -8px;
				right: -8px;
				z-index: 1;
				font-size: 12px;
				width: 16px;
				height: 16px;
				border-radius: 8px;
				line-height: 16px;
				text-align: center;
				background-color: #ff0000;
				color: #fff;
			}
		}

		.unbox {
			float: left;
			display: table-cell;
			margin-left: 8px;
			width: 94px;
			height: 32px;
			word-break: break-all;
			vertical-align: middle;
		}
	}
}

.ecDlgBox {
	float: left;
	width: 420px;
	height: 400px;
	background-color: #fff;
	border: 1px solid @border-lightblue;
	border-left: 0 none;
	.clsmsgwin {
		position: absolute;
		top: 0px;
		right: 10px;
		height: 38px;
		line-height: 36px;
	}
}

.emptyChatBox {
	.ecEmpty {
		display: block;
		.eceh {
			height: 38px;
			line-height: 36px;
			padding: 0 10px;
			border-bottom: 1px #d9d9d9 solid;
			background: #fff;
		}
		.hbar {
			float: right;
		}
		.clsctwin {

		}
	}
	.ecConBox {
		display: none;
	}
}

.ecNoNewMsg {
	.newMsgNum {
		display: none;
	}
}

.activeChatBox {
	.ecEmpty {
		display: none;
	}
	.ecConBox {
		display: block;
	}
}

.ecEmpty {
	width: 100%;
	height: 100%;
	display: none;
	background-color: #fafafa;

	.noMsg {
		padding-top: 180px;
		text-align: center;
		font-family: "微软雅黑","黑体";
		font-size: 14px;
		font-weight: 100;
	}
}

.ecConBox {
	display: none;
	overflow: hidden;
	background-color: @light-white;
	font-size: 14px;

	.ecBoxFooter {
		border-top: 1px solid #dadfea;
	}

	.tit {
		height: 38px;
		line-height: 38px;
		text-align: center;
		font-size: 14px;
		border-bottom: 1px solid #c3c3c3;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		word-wrap: normal;

		.uname {
			margin-left: 1em;
			margin-right: 1em;
		}
	}
}

.ecFormRow {
	background-color: #fff;
}

.ecMsgInput {
	box-sizing: border-box;
	width: 338px;
	height: 35px;
	line-height: 35px;
	padding: 5px;
	border: 0 none;
	overflow: hidden;
	float: left;
	outline: 0 none;
}

.ecMsgSendBtn {
	box-sizing: border-box;
	width: 80px;
	height: 35px;
	border: 0 none;
	overflow: hidden;
	float: left;
	outline: 0 none;
	cursor: pointer;
}

.ecMsgForm {
	*zoom: 1;
}

.ecMsgForm:before,
.ecMsgForm:after {
	display: table;
	line-height: 0;
	content: "";
}

.ecMsgForm:after {
	clear: both;
}

.ecBackground {
	display: none;
	height: 0;
	width: 0;
	font-size: 0;
}